mirror of https://github.com/coder/coder.git
test(scaletest): fix worksapcebuild retry (#11836)
This commit is contained in:
parent
02124758fb
commit
52c08a98bb
|
@ -278,6 +278,10 @@ func Test_Runner(t *testing.T) {
|
|||
require.Error(t, err)
|
||||
require.ErrorContains(t, err, "test error")
|
||||
require.Equal(t, 1, strings.Count(logsStr, "Retrying build"))
|
||||
require.Equal(t, 2*2, strings.Count(logsStr, "test error")) // once per error, once per logged sdk response.
|
||||
split := strings.Split(logsStr, "Retrying build")
|
||||
// Ensure the error is present both before and after the retry.
|
||||
for _, s := range split {
|
||||
require.Contains(t, s, "test error")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue