Browse code

Make sure we compare strings with the same capitalization

Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
(cherry picked from commit ded347e744e74b99c023b30b53fcabe2c3bde24c)

Alvaro Saurin authored on 2016/06/21 17:35:50
Showing 1 changed files
... ...
@@ -751,7 +751,7 @@ func (s *DockerSuite) TestRunUserByIDBig(c *check.C) {
751 751
 	if err == nil {
752 752
 		c.Fatal("No error, but must be.", out)
753 753
 	}
754
-	if !strings.Contains(out, libcontainerUser.ErrRange.Error()) {
754
+	if !strings.Contains(strings.ToUpper(out), strings.ToUpper(libcontainerUser.ErrRange.Error())) {
755 755
 		c.Fatalf("expected error about uids range, got %s", out)
756 756
 	}
757 757
 }
... ...
@@ -764,7 +764,7 @@ func (s *DockerSuite) TestRunUserByIDNegative(c *check.C) {
764 764
 	if err == nil {
765 765
 		c.Fatal("No error, but must be.", out)
766 766
 	}
767
-	if !strings.Contains(out, libcontainerUser.ErrRange.Error()) {
767
+	if !strings.Contains(strings.ToUpper(out), strings.ToUpper(libcontainerUser.ErrRange.Error())) {
768 768
 		c.Fatalf("expected error about uids range, got %s", out)
769 769
 	}
770 770
 }