diff --git a/github/github_test.go b/github/github_test.go
index <HASH>..<HASH> 100644
--- a/github/github_test.go
+++ b/github/github_test.go
@@ -392,8 +392,7 @@ func TestDo_sanitizeURL(t *testing.T) {
 	if err == nil {
 		t.Fatal("Expected error to be returned.")
 	}
-	if !strings.Contains(err.Error(), "client_secret=REDACTED") ||
-		strings.Contains(err.Error(), "client_secret=secret") {
+	if strings.Contains(err.Error(), "client_secret=secret") {
 		t.Errorf("Do error contains secret, should be redacted:\n%q", err)
 	}
 }
Don't require client_secret to be present.

Only test that secret is not included.

It seems versions of Go <I> and older did not include the URL query
parameters.