File tree 1 file changed +2
-3
lines changed
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) {
100
100
require .Error (t , err )
101
101
sketchFolderPath , _ = sketchFolderPath .Abs ()
102
102
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 )
104
104
require .Contains (t , err .Error (), expectedError )
105
105
106
106
sketchFolderPath = paths .New ("testdata" , sketchName )
107
107
mainFilePath := sketchFolderPath .Join (fmt .Sprintf ("%s.ino" , sketchName ))
108
108
sketch , err = New (mainFilePath )
109
109
require .Nil (t , sketch )
110
110
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 )
113
112
require .Contains (t , err .Error (), expectedError )
114
113
}
115
114
You can’t perform that action at this time.
0 commit comments