From a472d2f337a09097499e45045b7b13a12a531f91 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Wed, 15 May 2019 13:14:01 -0400 Subject: [PATCH] check byte not convert to string --- tidelift_yml_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tidelift_yml_test.go b/tidelift_yml_test.go index 4df7a54..9852695 100644 --- a/tidelift_yml_test.go +++ b/tidelift_yml_test.go @@ -27,6 +27,9 @@ func TestPassesMinimumRequirements(t *testing.T) { } func TestReadTideliftYamlFile(t *testing.T) { - yamlFile := string(readTideliftYamlFile("test/good_config")) - assert.Equal(t, "team-name: tidelift\nrepository-name: fake\n", yamlFile, "should have parsed") + yamlFile := readTideliftYamlFile("test/good_config") + assert.Equal(t, + []byte("team-name: tidelift\nrepository-name: fake\n"), + yamlFile, + "should have loaded file into []byte") }