From ae09c59b26247d142514eaef513314773cb3a406 Mon Sep 17 00:00:00 2001 From: enscogitans Date: Sat, 22 Feb 2020 01:31:06 +0300 Subject: [PATCH] Fixed test after renaming images --- digitalclock/main_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/digitalclock/main_test.go b/digitalclock/main_test.go index b5b70cc..dcb2d79 100644 --- a/digitalclock/main_test.go +++ b/digitalclock/main_test.go @@ -132,9 +132,10 @@ func TestDigitalClock_valid(t *testing.T) { for _, f := range files { t.Run(f.Name(), func(t *testing.T) { parts := strings.SplitN(strings.TrimSuffix(f.Name(), ".png"), "_", 2) + time := strings.Replace(parts[0], ".", ":", 2) v := url.Values{} - v.Add("time", parts[0]) + v.Add("time", time) v.Add("k", parts[1]) u := fmt.Sprintf("http://localhost:%s/?%s", port, v.Encode())