@@ -227,7 +227,7 @@ func TestAddCommand(t *testing.T) {
227227 if err != nil {
228228 t .Fatalf ("vfst.NewTestFS(_) == _, _, %v, want _, _, <nil>" , err )
229229 }
230- if err := c .runAddCommand (fs , nil , tc .args ); err != nil {
230+ if err := c .runAddCommand (fs , tc .args ); err != nil {
231231 t .Errorf ("c.runAddCommand(fs, nil, %+v) == %v, want <nil>" , tc .args , err )
232232 }
233233 vfst .RunTests (t , fs , "" , tc .tests )
@@ -253,7 +253,7 @@ func TestAddAfterModification(t *testing.T) {
253253 t .Fatalf ("vfst.NewTestFS(_) == _, _, %v, want _, _, <nil>" , err )
254254 }
255255 args := []string {"/home/user/.bashrc" }
256- if err := c .runAddCommand (fs , nil , args ); err != nil {
256+ if err := c .runAddCommand (fs , args ); err != nil {
257257 t .Errorf ("c.runAddCommand(fs, nil, %+v) == %v, want <nil>" , args , err )
258258 }
259259 vfst .RunTests (t , fs , "" ,
@@ -265,7 +265,7 @@ func TestAddAfterModification(t *testing.T) {
265265 if err := fs .WriteFile ("/home/user/.bashrc" , []byte ("# new contents of .bashrc\n " ), 0644 ); err != nil {
266266 t .Errorf ("fs.WriteFile(...) == %v, want <nil>" , err )
267267 }
268- if err := c .runAddCommand (fs , nil , args ); err != nil {
268+ if err := c .runAddCommand (fs , args ); err != nil {
269269 t .Errorf ("c.runAddCommand(fs, nil, %+v) == %v, want <nil>" , args , err )
270270 }
271271 vfst .RunTests (t , fs , "" ,
0 commit comments