Skip to content

Commit 8683169

Browse files
authored
fix: agent metadata flake (#6962)
1 parent d2bfa2b commit 8683169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/workspaceagents_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ func TestWorkspaceAgent_Metadata(t *testing.T) {
13551355
check := func(want codersdk.WorkspaceAgentMetadataResult, got codersdk.WorkspaceAgentMetadata) {
13561356
require.WithinDuration(t, want.CollectedAt, got.Result.CollectedAt, time.Second)
13571357
require.WithinDuration(
1358-
t, time.Now(), got.Result.CollectedAt.Add(time.Duration(got.Result.Age)*time.Second), time.Millisecond*500,
1358+
t, time.Now(), got.Result.CollectedAt.Add(time.Duration(got.Result.Age)*time.Second), time.Second,
13591359
)
13601360
require.Equal(t, want.Value, got.Result.Value)
13611361
require.Equal(t, want.Error, got.Result.Error)

0 commit comments

Comments
 (0)