Fixed utility function calls in testing example

This commit is contained in:
Matthieu Grieger 2016-06-01 21:37:16 -07:00
parent f0b36a98d3
commit ea7b1968a9
1 changed files with 2 additions and 2 deletions

View File

@ -201,8 +201,8 @@ func TestExist(t *testing.T) {
appFS = afero.NewMemMapFs() appFS = afero.NewMemMapFs()
// create test files and directories // create test files and directories
appFS.MkdirAll("src/a", 0755)) appFS.MkdirAll("src/a", 0755))
appFS.WriteFile("src/a/b", []byte("file b"), 0644) afero.WriteFile(appFS, "src/a/b", []byte("file b"), 0644)
appFS.WriteFile("src/c", []byte("file c"), 0644) afero.WriteFile(appFS, "src/c", []byte("file c"), 0644)
_, err := appFS.Stat("src/c") _, err := appFS.Stat("src/c")
if os.IsNotExist(err) { if os.IsNotExist(err) {
t.Errorf("file \"%s\" does not exist.\n", name) t.Errorf("file \"%s\" does not exist.\n", name)