Skip to content

Commit

Permalink
fix(lib/utils) : Use filepath.Join to create correct path on all OSs (#…
Browse files Browse the repository at this point in the history
…3369)

This Fixes `TestKeystoreDir` on wildows
  • Loading branch information
juanri0s authored Jul 6, 2023
1 parent dcfa4a4 commit 0fa8662
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package utils

import (
"path/filepath"
"strings"
"testing"

Expand Down Expand Up @@ -58,5 +59,5 @@ func TestKeystoreDir(t *testing.T) {
keystoreDir, err := KeystoreDir(testDir)
require.NoError(t, err)

assert.Equal(t, testDir+"/keystore", keystoreDir)
assert.Equal(t, filepath.Join(testDir, "keystore"), keystoreDir)
}

0 comments on commit 0fa8662

Please sign in to comment.