diff --git a/tests/get_mod_test.go b/tests/get_mod_test.go index 9e53d4dd..7367433f 100644 --- a/tests/get_mod_test.go +++ b/tests/get_mod_test.go @@ -4,6 +4,7 @@ import ( "testing" "github.com/MarvinJWendt/testza" + "github.com/satisfactorymodding/smr-api/generated" ) @@ -28,8 +29,8 @@ func TestGetModLimitOffset(t *testing.T) { token, _, err := makeUser(ctx) testza.AssertNoError(t, err) - tags := seedTags(t, ctx, token, client) - seedMods(t, ctx, token, client, tags[0]) + tags := seedTags(ctx, t, token, client) + seedMods(ctx, t, token, client, tags[0]) getRequest := authRequest(getQuery, token) diff --git a/tests/utils_test.go b/tests/utils_test.go index a2960172..b3b86f96 100644 --- a/tests/utils_test.go +++ b/tests/utils_test.go @@ -6,11 +6,12 @@ import ( "github.com/MarvinJWendt/testza" "github.com/machinebox/graphql" + "github.com/satisfactorymodding/smr-api/generated" "github.com/satisfactorymodding/smr-api/util" ) -func seedTags(t *testing.T, ctx context.Context, token string, client *graphql.Client) []string { +func seedTags(ctx context.Context, t *testing.T, token string, client *graphql.Client) []string { tags := []string{ "hello", "foo", @@ -45,7 +46,7 @@ type testMod struct { TagIDs []string `json:"tagIDs"` } -func seedMods(t *testing.T, ctx context.Context, token string, client *graphql.Client, tagID string) []string { +func seedMods(ctx context.Context, t *testing.T, token string, client *graphql.Client, tagID string) []string { mods := []testMod{ { Name: "Advanced Robotics",