diff options
author | Ed Marshall <esm@logic.net> | 2017-03-06 19:19:13 -0800 |
---|---|---|
committer | Ed Marshall <esm@logic.net> | 2017-03-06 19:19:13 -0800 |
commit | 032d3bc0dd505497315919c5da5f10b1ac7e277c (patch) | |
tree | 1aa32734cb0540e3cb0bb76c3b378a100b4caa56 /go-hostpool-test.patch | |
download | golang-github-hailocab-go-hostpool-032d3bc0dd505497315919c5da5f10b1ac7e277c.tar.gz golang-github-hailocab-go-hostpool-032d3bc0dd505497315919c5da5f10b1ac7e277c.tar.xz golang-github-hailocab-go-hostpool-032d3bc0dd505497315919c5da5f10b1ac7e277c.zip |
Diffstat (limited to 'go-hostpool-test.patch')
-rw-r--r-- | go-hostpool-test.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/go-hostpool-test.patch b/go-hostpool-test.patch new file mode 100644 index 0000000..9f9a2dc --- /dev/null +++ b/go-hostpool-test.patch @@ -0,0 +1,21 @@ +diff -urP go-hostpool-e80d13ce29ede4452c43dea11e79b9bc8a15b478.orig/example_test.go go-hostpool-e80d13ce29ede4452c43dea11e79b9bc8a15b478/example_test.go +--- go-hostpool-e80d13ce29ede4452c43dea11e79b9bc8a15b478.orig/example_test.go 2016-01-25 03:53:50.000000000 -0800 ++++ go-hostpool-e80d13ce29ede4452c43dea11e79b9bc8a15b478/example_test.go 2017-03-04 13:21:43.814565825 -0800 +@@ -1,13 +1,12 @@ +-package hostpool ++package hostpool_test + + import ( +- "github.com/bitly/go-hostpool" ++ "github.com/hailocab/go-hostpool" + ) + + func ExampleNewEpsilonGreedy() { + hp := hostpool.NewEpsilonGreedy([]string{"a", "b"}, 0, &hostpool.LinearEpsilonValueCalculator{}) + hostResponse := hp.Get() +- hostname := hostResponse.Host() +- err := nil // (make a request with hostname) +- hostResponse.Mark(err) ++ _ = hostResponse.Host() ++ hostResponse.Mark(nil) + } |