Skip to content

Commit

Permalink
Tests: Update init test
Browse files Browse the repository at this point in the history
  • Loading branch information
graciousgrey committed May 17, 2024
1 parent e5780b6 commit 107cb2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/thumb/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ func TestInit(t *testing.T) {
})
t.Run("LibImaging", func(t *testing.T) {
Init(memory.FreeMemory(), runtime.NumCPU(), LibImaging)
assert.GreaterOrEqual(t, MaxCacheMem, DefaultCacheMem)
assert.GreaterOrEqual(t, NumWorkers, DefaultWorkers)
assert.GreaterOrEqual(t, MaxCacheMem, 64*MiB)
assert.GreaterOrEqual(t, NumWorkers, 1)
assert.Equal(t, LibImaging, Library)
})
t.Run("Dynamic", func(t *testing.T) {
Init(memory.FreeMemory(), runtime.NumCPU(), LibVips)
assert.GreaterOrEqual(t, MaxCacheMem, DefaultCacheMem)
assert.GreaterOrEqual(t, NumWorkers, DefaultWorkers)
assert.GreaterOrEqual(t, MaxCacheMem, 64*MiB)
assert.GreaterOrEqual(t, NumWorkers, 1)
assert.Equal(t, LibVips, Library)
})
}

0 comments on commit 107cb2e

Please sign in to comment.