File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -100,16 +100,15 @@ func TestNewSketchWrongMain(t *testing.T) {
100100 require .Error (t , err )
101101 sketchFolderPath , _ = sketchFolderPath .Abs ()
102102 expectedMainFile := sketchFolderPath .Join (sketchName )
103- expectedError := fmt .Sprintf ("no valid sketch found in %s: missing %s" , sketchFolderPath , expectedMainFile )
103+ expectedError := fmt .Sprintf ("main file missing from sketch: %s" , expectedMainFile )
104104 require .Contains (t , err .Error (), expectedError )
105105
106106 sketchFolderPath = paths .New ("testdata" , sketchName )
107107 mainFilePath := sketchFolderPath .Join (fmt .Sprintf ("%s.ino" , sketchName ))
108108 sketch , err = New (mainFilePath )
109109 require .Nil (t , sketch )
110110 require .Error (t , err )
111- sketchFolderPath , _ = sketchFolderPath .Abs ()
112- expectedError = fmt .Sprintf ("no valid sketch found in %s: missing %s" , sketchFolderPath , expectedMainFile )
111+ expectedError = fmt .Sprintf ("main file missing from sketch: %s" , expectedMainFile )
113112 require .Contains (t , err .Error (), expectedError )
114113}
115114
You can’t perform that action at this time.
0 commit comments