Skip to content

Commit

Permalink
Resolved linter workflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
VeerChaurasia committed Sep 21, 2024
1 parent f5d2a70 commit f538b63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package config

import (
"testing"
)
Expand All @@ -9,7 +10,7 @@ func TestBytesSerialise(t *testing.T) {
expected string
}{
{nil, "null"},
{[]byte{}, "\"\""}, // This should be checked
{[]byte{}, "\"\""},
{[]byte{0x01, 0x02, 0x03}, "\"010203\""},
}

Expand All @@ -27,14 +28,13 @@ func TestBytesSerialise(t *testing.T) {
}
}


func TestBytesDeserialise(t *testing.T) {
tests := []struct {
input string // input JSON string
input string
expected []byte
}{
{"null", nil},
{"\"\"", []byte{}}, // Adjusted expectation for empty JSON string
{"\"\"", []byte{}},
{"\"010203\"", []byte{0x01, 0x02, 0x03}},
}

Expand Down

0 comments on commit f538b63

Please sign in to comment.