Skip to content

Commit 55f4455

Browse files
committed
test fixes
1 parent af0e468 commit 55f4455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/ota-api/dto_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99
func TestProgressBar_notCompletePct(t *testing.T) {
1010
firmwareSize := int64(25665 * 2)
1111
bar := formatStateData("fetch", "25665", firmwareSize, false)
12-
assert.Equal(t, "[========== ] 50.00%", bar)
12+
assert.Equal(t, "[========== ] 50.00% (firmware size: 51330 bytes)", bar)
1313
}
1414

1515
func TestProgressBar_ifFlashState_goTo100Pct(t *testing.T) {
1616
firmwareSize := int64(25665 * 2)
1717
bar := formatStateData("fetch", "25665", firmwareSize, true) // If in flash status, go to 100%
18-
assert.Equal(t, "[====================] 100.00%", bar)
18+
assert.Equal(t, "[====================] 100.00% (firmware size: 51330 bytes)", bar)
1919
}

0 commit comments

Comments
 (0)