mirror of https://github.com/docker/docs.git
updated test
Signed-off-by: tronicum <tronicum@gmail.com>
This commit is contained in:
parent
071ce5e667
commit
5c888874e0
|
|
@ -17,12 +17,12 @@ func TestFedoraGenerateYumRepoList(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
m, err := regexp.MatchString(".*fedora/22.*", buf.String())
|
m, err := regexp.MatchString(".*fedora/23.*", buf.String())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !m {
|
if !m {
|
||||||
t.Fatalf("expected match for fedora/22")
|
t.Fatalf("expected match for fedora/23")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue