diff options
| author | chrislu <chris.lu@gmail.com> | 2025-10-26 13:57:56 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-10-26 13:57:56 -0700 |
| commit | fbb459ca4c4c694cbcec1b12a507097ec21f1711 (patch) | |
| tree | 5944b8ec17dbb53dbc6da629f179a83e6c7357b0 | |
| parent | 6fff6269c8f766db3292cb5849f1a9a18ca73799 (diff) | |
| download | seaweedfs-fbb459ca4c4c694cbcec1b12a507097ec21f1711.tar.xz seaweedfs-fbb459ca4c4c694cbcec1b12a507097ec21f1711.zip | |
minor
| -rw-r--r-- | weed/storage/disk_location_ec_realworld_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/storage/disk_location_ec_realworld_test.go b/weed/storage/disk_location_ec_realworld_test.go index 7ebe16829..3a21ccb6c 100644 --- a/weed/storage/disk_location_ec_realworld_test.go +++ b/weed/storage/disk_location_ec_realworld_test.go @@ -2,6 +2,7 @@ package storage import ( "os" + "path/filepath" "testing" "github.com/seaweedfs/seaweedfs/weed/storage/erasure_coding" @@ -52,7 +53,7 @@ func TestCalculateExpectedShardSizeWithRealEncoding(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { // Create a test .dat file with the specified size - baseFileName := tempDir + "/test_volume" + baseFileName := filepath.Join(tempDir, "test_volume") datFileName := baseFileName + ".dat" // Create .dat file with random data pattern (so it's compressible but realistic) @@ -145,7 +146,7 @@ func TestCalculateExpectedShardSizeEdgeCases(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - baseFileName := tempDir + "/" + tt.name + baseFileName := filepath.Join(tempDir, tt.name) datFileName := baseFileName + ".dat" // Create .dat file |
