Skip to content

Commit f6689b9

Browse files
author
Federico Fissore
committed
Renamed test sketch "asketch" to more meaningful "sketch_with_subfolders"
Signed-off-by: Federico Fissore <[email protected]>
1 parent ec7e8e5 commit f6689b9

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/arduino.cc/builder/test/sketch_loader_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func TestFailToLoadSketchFromFolder(t *testing.T) {
117117

118118
func TestLoadSketchFromFolder(t *testing.T) {
119119
context := make(map[string]interface{})
120-
context[constants.CTX_SKETCH_LOCATION] = "asketch"
120+
context[constants.CTX_SKETCH_LOCATION] = "sketch_with_subfolders"
121121

122122
loggerCommand := builder.SetupHumanLoggerIfMissing{}
123123
err := loggerCommand.Run(context)
@@ -130,7 +130,7 @@ func TestLoadSketchFromFolder(t *testing.T) {
130130
sketch := context[constants.CTX_SKETCH].(*types.Sketch)
131131
require.NotNil(t, sketch)
132132

133-
require.True(t, strings.Index(sketch.MainFile.Name, "asketch.ino") != -1)
133+
require.True(t, strings.Index(sketch.MainFile.Name, "sketch_with_subfolders.ino") != -1)
134134

135135
require.Equal(t, 1, len(sketch.AdditionalFiles))
136136
require.True(t, strings.Index(sketch.AdditionalFiles[0].Name, "other.cpp") != -1)

0 commit comments

Comments
 (0)