Reduce test size to 1gb, for 32-int compatibility

pull/4023/head
Philip O'Toole 2015-08-19 12:50:54 -07:00
parent dd68989fb6
commit 63f975b47c
1 changed files with 2 additions and 2 deletions

View File

@ -19,9 +19,9 @@ func TestSize_UnmarshalText_MB(t *testing.T) {
// Ensure that gigabyte sizes can be parsed.
func TestSize_UnmarshalText_GB(t *testing.T) {
var s toml.Size
if err := s.UnmarshalText([]byte("2g")); err != nil {
if err := s.UnmarshalText([]byte("1g")); err != nil {
t.Fatalf("unexpected error: %s", err)
} else if s != 2147483648 {
} else if s != 1073741824 {
t.Fatalf("unexpected size: %d", s)
}
}