@@ -3,6 +3,7 @@ package file_test
3
3
import (
4
4
"fmt"
5
5
"regexp"
6
+ "strconv"
6
7
"testing"
7
8
8
9
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
@@ -36,7 +37,7 @@ func TestAccFileSystem_Basic(t *testing.T) {
36
37
Check : resource .ComposeTestCheckFunc (
37
38
testAccCheckFileSystemExists (tt , "scaleway_file_filesystem.fs" ),
38
39
resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "name" , fileSystemName ),
39
- resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size" , fmt . Sprintf ( "%d" , size )),
40
+ resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size" , strconv . FormatInt ( int64 ( size ), 10 )),
40
41
),
41
42
},
42
43
{
@@ -48,7 +49,7 @@ func TestAccFileSystem_Basic(t *testing.T) {
48
49
` , fileSystemNameUpdated , size ),
49
50
Check : resource .ComposeTestCheckFunc (
50
51
testAccCheckFileSystemExists (tt , "scaleway_file_filesystem.fs" ),
51
- resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size" , fmt . Sprintf ( "%d" , size )),
52
+ resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size" , strconv . FormatInt ( int64 ( size ), 10 )),
52
53
),
53
54
},
54
55
},
0 commit comments