We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 295dbdd commit 3e908d7Copy full SHA for 3e908d7
coderd/workspaceagents_test.go
@@ -1294,7 +1294,13 @@ func TestWorkspaceAgent_Metadata(t *testing.T) {
1294
// We can't trust the order of the updates due to timers and debounces,
1295
// so let's check a few times once more.
1296
for i := 0; i < 2 && (want.Value != got.Result.Value || want.Error != got.Result.Error); i++ {
1297
- recvUpdate()
+ update = recvUpdate()
1298
+ for _, m := range update {
1299
+ if m.Description.Key == got.Description.Key {
1300
+ got = m
1301
+ break
1302
+ }
1303
1304
}
1305
ok1 := assert.Equal(t, want.Value, got.Result.Value)
1306
ok2 := assert.Equal(t, want.Error, got.Result.Error)
0 commit comments