Skip to content

Commit

Permalink
test: Invalid error scope caused race in WorkspaceHistoryLogs (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecarbs committed Feb 4, 2022
1 parent 682238d commit 7a7f664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coderd/workspacehistorylogs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ func TestWorkspaceHistoryLogs(t *testing.T) {
t.Run("ReturnAll", func(t *testing.T) {
t.Parallel()

_, err = server.Client.WorkspaceHistoryLogs(context.Background(), "", workspace.Name, workspaceHistory.Name)
_, err := server.Client.WorkspaceHistoryLogs(context.Background(), "", workspace.Name, workspaceHistory.Name)
require.NoError(t, err)
})

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

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

0 comments on commit 7a7f664

Please sign in to comment.