Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: client/internal/common/utils_test.go

Issue 1135173003: Create packages client/internal/ retry and lhttp. (Closed) Base URL: git@github.com:luci/luci-go@3_UI
Patch Set: . Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/internal/common/utils_test.go
diff --git a/client/internal/common/utils_test.go b/client/internal/common/utils_test.go
index d4c80eb7c52e73504b9883ab6e7755761efd3c3c..39e8bd177dad868f736ee94f9b67178a7666c4f6 100644
--- a/client/internal/common/utils_test.go
+++ b/client/internal/common/utils_test.go
@@ -5,7 +5,6 @@
package common
import (
- "errors"
"testing"
"time"
@@ -35,23 +34,6 @@ func TestSizeToString(t *testing.T) {
}
}
-func TestURLToHTTPS(t *testing.T) {
- data := []struct {
- in string
- expected string
- err error
- }{
- {"foo", "https://foo", nil},
- {"https://foo", "https://foo", nil},
- {"http://foo", "", errors.New("Only https:// scheme is accepted. It can be omitted.")},
- }
- for i, line := range data {
- out, err := URLToHTTPS(line.in)
- ut.AssertEqualIndex(t, i, line.expected, out)
- ut.AssertEqualIndex(t, i, line.err, err)
- }
-}
-
func TestRound(t *testing.T) {
data := []struct {
in time.Duration

Powered by Google App Engine
This is Rietveld 408576698