Skip to content

Commit

Permalink
fix misspellings
Browse files Browse the repository at this point in the history
  • Loading branch information
lkingland committed May 11, 2023
1 parent fe05d81 commit 128fc0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/functions/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func TestClient_New_RunDataDir(t *testing.T) {
t.Fatal(err)
}
if _, err := os.Stat(filepath.Join(root, fn.RunDataDir)); os.IsNotExist(err) {
t.Fatal("runtime directory not created when funciton created.")
t.Fatal("runtime directory not created when function created.")
}

// Ensure it is set as ignored in a .gitignore
Expand Down Expand Up @@ -120,7 +120,7 @@ func TestClient_New_RunDataDir(t *testing.T) {
root, rm = Mktemp(t)
defer rm()

userDirective := fmt.Sprintf("# /%v", fn.RunDataDir) // User explicity commented
userDirective := fmt.Sprintf("# /%v", fn.RunDataDir) // User explicitly commented
funcDirective := fmt.Sprintf("/%v", fn.RunDataDir)
if err = os.WriteFile(filepath.Join(root, ".gitignore"), []byte(userDirective+"/n"), os.ModePerm); err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -153,7 +153,7 @@ func TestClient_New_RunDataDir(t *testing.T) {
// it will work if the user omits the space: "#/.func"
root, rm = Mktemp(t)
defer rm()
userDirective = fmt.Sprintf("#/%v", fn.RunDataDir) // User explicity commented but without space
userDirective = fmt.Sprintf("#/%v", fn.RunDataDir) // User explicitly commented but without space
if err = os.WriteFile(filepath.Join(root, ".gitignore"), []byte(userDirective+"/n"), os.ModePerm); err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 128fc0e

Please sign in to comment.