mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-14 02:58:47 +00:00
Update tests to handle codec changes
This commit is contained in:
@@ -62,7 +62,7 @@ func TestSplitYAMLDocument(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGuessJSON(t *testing.T) {
|
||||
if r, isJSON := guessJSONStream(bytes.NewReader([]byte(" \n{}")), 100); !isJSON {
|
||||
if r, isJSON := GuessJSONStream(bytes.NewReader([]byte(" \n{}")), 100); !isJSON {
|
||||
t.Fatalf("expected stream to be JSON")
|
||||
} else {
|
||||
b := make([]byte, 30)
|
||||
|
Reference in New Issue
Block a user