mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test: Invalid error scope caused race in WorkspaceHistoryLogs (#164)
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user