Skip to content

Commit 55b9924

Browse files
maheshwarishikhaShikha Maheshwari
andauthored
test: update test (#190)
Co-authored-by: Shikha Maheshwari <[email protected]>
1 parent 7eca593 commit 55b9924

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/other_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package test
33

44
import (
55
"log"
6+
"os"
67
"testing"
78

89
"github.com/stretchr/testify/assert"
@@ -30,6 +31,12 @@ func TestRunCompleteExample(t *testing.T) {
3031

3132
usernames := []string{"admin1"}
3233

34+
cwd, err1 := os.Getwd()
35+
if err1 != nil {
36+
log.Fatalf("Error getting current working directory: %v", err1)
37+
}
38+
sigDirectory = cwd + "/keys"
39+
3340
admins, err := CreateSigKeys(usernames, sigDirectory)
3441
if !assert.Nilf(t, err, "Error creating sigkeys: %v", err) {
3542
log.Fatalf("Error creating sigkeys: %v", err)

0 commit comments

Comments
 (0)