Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leoleoasd committed Jun 27, 2024
1 parent 3dcc192 commit 3b4f755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controller/problem_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ func TestGetProblemSetGrades(t *testing.T) {
{
ID: databaseProblemSet.Grades[0].ID,
UserID: user1.ID,
User: nil,
User: user1,

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.17.x, macos-latest)

cannot use user1 (type models.User) as type *models.User in field value

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.18.x, macos-latest)

cannot use user1 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.18.x, ubuntu-latest)

cannot use user1 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / coverage

cannot use user1 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, macos-latest)

cannot use user1 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test-race (1.17.x, ubuntu-latest)

cannot use user1 (type models.User) as type *models.User in field value

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

cannot use user1 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test-race (1.18.x, ubuntu-latest)

cannot use user1 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.17.x, ubuntu-latest)

cannot use user1 (type models.User) as type *models.User in field value

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test-race (1.18.x, macos-latest)

cannot use user1 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test-race (1.19.x, ubuntu-latest)

cannot use user1 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1510 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test-race (1.17.x, macos-latest)

cannot use user1 (type models.User) as type *models.User in field value
ProblemSetID: problemSet.ID,
ProblemSet: nil,
ClassID: class.ID,
Expand All @@ -1520,7 +1520,7 @@ func TestGetProblemSetGrades(t *testing.T) {
{
ID: databaseProblemSet.Grades[1].ID,
UserID: user2.ID,
User: nil,
User: user2,

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.17.x, macos-latest)

cannot use user2 (type models.User) as type *models.User in field value

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.18.x, macos-latest)

cannot use user2 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.18.x, ubuntu-latest)

cannot use user2 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / coverage

cannot use user2 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, macos-latest)

cannot use user2 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test-race (1.17.x, ubuntu-latest)

cannot use user2 (type models.User) as type *models.User in field value

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

cannot use user2 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test-race (1.18.x, ubuntu-latest)

cannot use user2 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test (1.17.x, ubuntu-latest)

cannot use user2 (type models.User) as type *models.User in field value

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test-race (1.18.x, macos-latest)

cannot use user2 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test-race (1.19.x, ubuntu-latest)

cannot use user2 (variable of type models.User) as type *models.User in struct literal

Check failure on line 1523 in app/controller/problem_set_test.go

View workflow job for this annotation

GitHub Actions / test-race (1.17.x, macos-latest)

cannot use user2 (type models.User) as type *models.User in field value
ProblemSetID: problemSet.ID,
ProblemSet: nil,
ClassID: class.ID,
Expand Down
2 changes: 1 addition & 1 deletion base/utils/problem_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func CreateEmptyGrades(problemSet *models.ProblemSet) error {
}

// json log
log.Errorf("Empty detail JSON: %s", emptyDetail)
log.Debugf("Empty detail JSON: %s", emptyDetail)

// Record students who have a grade
gradeSet := make(map[uint]bool)
Expand Down

0 comments on commit 3b4f755

Please sign in to comment.