Skip to content

Commit

Permalink
Test data length
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Dec 23, 2023
1 parent 497ac4b commit 86efc84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/logic/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ func TestRunCPUProfile(t *testing.T) {
tests.S(t).ExpectNil(err)
tests.S(t).ExpectNotEquals(profile, "")

_, err = base64.StdEncoding.DecodeString(profile)
data, err := base64.StdEncoding.DecodeString(profile)
tests.S(t).ExpectNil(err)
tests.S(t).ExpectNotEquals(len(data), 0)
}
{
s := &Server{isCPUProfiling: 1}
Expand Down

0 comments on commit 86efc84

Please sign in to comment.