Skip to content

Commit

Permalink
chore: fix cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay committed Mar 27, 2024
1 parent 14ef2be commit f366d11
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions internal/models/cleanup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,10 @@ func TestCleanup(t *testing.T) {
conn, err := test.SetupDBConnection(globalConfig)
require.NoError(t, err)

sessionTimebox := 10 * time.Second
sessionInactivityTimeout := 5 * time.Second
*globalConfig.Sessions.Timebox = 10 * time.Second
*globalConfig.Sessions.InactivityTimeout = 5 * time.Second

cleanup := &Cleanup{
SessionTimebox: &sessionTimebox,
SessionInactivityTimeout: &sessionInactivityTimeout,
}

cleanup.Setup()
cleanup := NewCleanup(globalConfig)

for i := 0; i < 100; i += 1 {
_, err := cleanup.Clean(conn)
Expand Down

0 comments on commit f366d11

Please sign in to comment.