summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testrig/testmodels.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/testrig/testmodels.go b/testrig/testmodels.go
index 47457393a..ae69b9e81 100644
--- a/testrig/testmodels.go
+++ b/testrig/testmodels.go
@@ -618,7 +618,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
}
if diff := len(accountsSorted) - len(preserializedKeys); diff > 0 {
- keyStrings := make([]string, diff)
+ keyStrings := make([]string, 0, diff)
for i := 0; i < diff; i++ {
priv, _ := rsa.GenerateKey(rand.Reader, 2048)
key, _ := x509.MarshalPKCS8PrivateKey(priv)