From 96ba551836563a08c6926b2488919b24076a8aa9 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 22 Jan 2021 17:50:01 +0100 Subject: [PATCH] Revert "The source tests are completely brok4n :(" This reverts commit a76ffb01438463aa5e14509983bca06385162f13. --- dnscrypt-proxy/sources_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/dnscrypt-proxy/sources_test.go b/dnscrypt-proxy/sources_test.go index 535d75e2..6d347104 100644 --- a/dnscrypt-proxy/sources_test.go +++ b/dnscrypt-proxy/sources_test.go @@ -9,7 +9,6 @@ import ( "net/url" "os" "path/filepath" - "sort" "strconv" "strings" "testing" @@ -380,8 +379,6 @@ func TestNewSource(t *testing.T) { } else { c.Nil(err, "Unexpected error") } - sort.SliceStable(got.urls, func(i, j int) bool { return got.urls[i].String() < got.urls[j].String() }) - sort.SliceStable(e.Source.urls, func(i, j int) bool { return e.Source.urls[i].String() < e.Source.urls[j].String() }) c.DeepEqual(got, e.Source, "Unexpected return") checkTestServer(c, d) checkSourceCache(c, e)