test: Invalid error scope caused race in WorkspaceHistoryLogs (#164)

This commit is contained in:
Kyle Carberry
2022-02-04 17:20:55 -06:00
committed by GitHub
parent 682238d384
commit 7a7f664727

View File

@ -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)
})
}