Skip to content

Commit

Permalink
fixing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
balzack committed Jul 18, 2023
1 parent d28f9e0 commit cee9612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/server/internal/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ func TestMain(m *testing.M) {
}

// config open access
access := &store.Config{ConfigID: CNFOpenAccess, BoolValue: true}
access := &store.Config{ConfigID: CNFEnableOpenAccess, BoolValue: true}
if err := store.DB.Save(access).Error; err != nil {
panic("failed to configure open access")
}

// config account limit
limit := &store.Config{ConfigID: CNFAccountLimit, NumValue: 1024}
limit := &store.Config{ConfigID: CNFOpenAccessLimit, NumValue: 1024}
if err := store.DB.Save(limit).Error; err != nil {
panic("failed to configure account limit")
}
Expand Down

0 comments on commit cee9612

Please sign in to comment.