Skip to content

Commit bc31bd0

Browse files
committed
Added test for no header generation
1 parent a8cc369 commit bc31bd0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

command/ota/massupload_test.go

+12
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,15 @@ func TestValidateBuildOtaFile(t *testing.T) {
133133
assert.NotNil(t, file)
134134
assert.True(t, strings.HasSuffix(file, "temp.ota"))
135135
}
136+
137+
func TestValidateBuildOtaFile_whenNoHeaderIsRequested(t *testing.T) {
138+
139+
file, err := buildOtaFile(&MassUploadParams{
140+
File: cloudFirmwareFilename,
141+
DoNotApplyHeader: true,
142+
FQBN: "arduino:samd:nano_33_iot",
143+
})
144+
assert.Nil(t, err)
145+
assert.NotNil(t, file)
146+
assert.Equal(t, cloudFirmwareFilename, file)
147+
}

0 commit comments

Comments
 (0)