Skip to content

Commit

Permalink
adapt failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ftl committed Feb 11, 2024
1 parent b0b0d34 commit 000897a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ clean:

.PHONY: test
test:
go test -v -timeout=30s ./...
go test -v -timeout=30s -count 1 ./...

.PHONY: build
build:
Expand Down
4 changes: 2 additions & 2 deletions cw/decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestDecoder_SpeedTolerance(t *testing.T) {
}
}

assert.Equal(t, 12, minWpm, "min")
assert.Equal(t, 11, minWpm, "min")
assert.Equal(t, 37, maxWpm, "max")
}

Expand All @@ -104,7 +104,7 @@ func TestDecoder_SpeedAdaptionRate(t *testing.T) {
{56, 2},
{57, maxRounds},
{12, 1},
{11, 2},
{11, 1},
{10, 2},
{7, 2},
{6, 2},
Expand Down
1 change: 1 addition & 0 deletions rx/text_processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func TestTextProcessor_CollectCallsign(t *testing.T) {
for _, c := range receivedText {
p.Write([]byte(string(c)))
}
p.sync()

t.Logf("collected callsigns %v", p.collectedCallsigns)
assert.Equal(t, 3, p.collectedCallsigns["DL1ABC"].count)
Expand Down

0 comments on commit 000897a

Please sign in to comment.