Skip to content

Commit 7a7f664

Browse files
authored
test: Invalid error scope caused race in WorkspaceHistoryLogs (#164)
1 parent 682238d commit 7a7f664

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/workspacehistorylogs_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ func TestWorkspaceHistoryLogs(t *testing.T) {
8585
t.Run("ReturnAll", func(t *testing.T) {
8686
t.Parallel()
8787

88-
_, err = server.Client.WorkspaceHistoryLogs(context.Background(), "", workspace.Name, workspaceHistory.Name)
88+
_, err := server.Client.WorkspaceHistoryLogs(context.Background(), "", workspace.Name, workspaceHistory.Name)
8989
require.NoError(t, err)
9090
})
9191

9292
t.Run("Between", func(t *testing.T) {
9393
t.Parallel()
9494

95-
_, err = server.Client.WorkspaceHistoryLogsBetween(context.Background(), "", workspace.Name, workspaceHistory.Name, time.Time{}, database.Now())
95+
_, err := server.Client.WorkspaceHistoryLogsBetween(context.Background(), "", workspace.Name, workspaceHistory.Name, time.Time{}, database.Now())
9696
require.NoError(t, err)
9797
})
9898
}

0 commit comments

Comments
 (0)