about summary refs log tree commit diff
path: root/tools/govanity/e2e_test.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/govanity/e2e_test.go13
1 files changed, 2 insertions, 11 deletions
diff --git a/tools/govanity/e2e_test.go b/tools/govanity/e2e_test.go
index 4ec299a..157bcc2 100644
--- a/tools/govanity/e2e_test.go
+++ b/tools/govanity/e2e_test.go
@@ -1,12 +1,9 @@
 package main
 
 import (
-	"io/ioutil"
 	"net"
 	"net/http"
 	"testing"
-
-	"gopkg.in/yaml.v3"
 )
 
 func TestConfigurationURL(t *testing.T) {
@@ -17,15 +14,9 @@ func TestConfigurationURL(t *testing.T) {
 		t.Skipf("no network connectivity: %v", err)
 	}
 
-	buf, err := ioutil.ReadFile("vanity.yaml")
-	if err != nil {
-		t.Fatalf("failed to read the configuration file: %v", err)
-	}
-
-	cfg := &config{}
-	err = yaml.Unmarshal(buf, cfg)
+	cfg, err := loadConfig()
 	if err != nil {
-		t.Fatalf("failed to parse the YAML configuration: %v", err)
+		t.Fatal(err)
 	}
 
 	for _, r := range cfg.Repositories {