aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/api/api_integration_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/api/api_integration_test.go b/internal/api/api_integration_test.go
index 141dcf64..9259b590 100644
--- a/internal/api/api_integration_test.go
+++ b/internal/api/api_integration_test.go
@@ -8,7 +8,6 @@ import (
"errors"
"fmt"
"io"
- "math"
"math/rand"
"os"
"strings"
@@ -58,7 +57,7 @@ func (c *integrationTestConfig) isConfigured() bool {
}
func (c *integrationTestConfig) genRandomUsername() string {
- return fmt.Sprintf("%s_%10d", c.testRegularUsername, rand.Intn(math.MaxInt64))
+ return fmt.Sprintf("%s_%10d", c.testRegularUsername, rand.Int())
}
func TestIncorrectEndpoint(t *testing.T) {