chore: make methods consistent in signatures (#1971)

* chore: make methods consistent in signatures

* test: fix fails
This commit is contained in:
Kevin Wan
2022-06-05 12:56:13 +08:00
committed by GitHub
parent 3fa8c5940d
commit 1d95e95cf8
4 changed files with 13 additions and 6 deletions

View File

@@ -210,7 +210,6 @@ func validate(t *testing.T, body string, expectedTrace, expectedSpan bool) {
val = doc
}
assert.Nil(t, json.Unmarshal([]byte(body), &val), body)
assert.Equal(t, expectedTrace, len(val.Trace) > 0, body)
assert.Equal(t, expectedSpan, len(val.Span) > 0, body)
}