aboutsummaryrefslogtreecommitdiff
path: root/lib/versioner/simple_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/versioner/simple_test.go')
-rw-r--r--lib/versioner/simple_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/versioner/simple_test.go b/lib/versioner/simple_test.go
index 3b3abb436..5e540e48a 100644
--- a/lib/versioner/simple_test.go
+++ b/lib/versioner/simple_test.go
@@ -7,7 +7,6 @@
package versioner
import (
- "math"
"os"
"path/filepath"
"strings"
@@ -88,7 +87,7 @@ func TestSimpleVersioningVersionCount(t *testing.T) {
t.Error(err)
}
- if float64(len(n)) != math.Min(float64(i), 2) {
+ if len(n) != min(i, 2) {
t.Error("Wrong count")
}