Skip to content

Commit

Permalink
Fix tests import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Mar 23, 2024
1 parent 7d1a74b commit 81f90f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ run:
@go run $(GO_FLAGS) -race main.go

test:
@go test $(GO_FLAGS) -race -cover . ./...
@go test $(GO_FLAGS) -race -cover .\tf2bdd\

clean:
@go clean $(GO_FLAGS) -i
Expand Down
4 changes: 2 additions & 2 deletions tf2bdd/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func newTestDB(ctx context.Context) (*sql.DB, error) {
return nil, errDB
}

return db, setupDB(ctx, db)
return db, SetupDB(ctx, db)
}

func TestHandleGetSteamIDS(t *testing.T) {
Expand Down Expand Up @@ -65,7 +65,7 @@ func TestHandleGetSteamIDS(t *testing.T) {
require.NoError(t, addPlayer(ctx, database, p, 0))
}

createRouter(database, testConfig).ServeHTTP(recorder, req)
CreateRouter(database, testConfig).ServeHTTP(recorder, req)
require.Equal(t, http.StatusOK, recorder.Code)

var players PlayerListRoot
Expand Down

0 comments on commit 81f90f2

Please sign in to comment.