Skip to content

Commit 0710b87

Browse files
committed
Corrects file path for test files
1 parent c21fc8c commit 0710b87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/storage/store_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
func TestAppendAndReadSingleEntry(t *testing.T) {
12-
filePath := fmt.Sprintf("%s%s", os.TempDir(), "TestAppendAndReadSingleEntry")
12+
filePath := fmt.Sprintf("%s/%s", os.TempDir(), "TestAppendAndReadSingleEntry")
1313
defer os.Remove(filePath)
1414
store, err := NewStore(filePath)
1515

@@ -25,7 +25,7 @@ func TestAppendAndReadSingleEntry(t *testing.T) {
2525
}
2626

2727
func TestAppendAndReadMultipleEntry(t *testing.T) {
28-
filePath := fmt.Sprintf("%s%s", os.TempDir(), "TestAppendAndReadMultipleEntry")
28+
filePath := fmt.Sprintf("%s/%s", os.TempDir(), "TestAppendAndReadMultipleEntry")
2929
defer os.Remove(filePath)
3030
store, err := NewStore(filePath)
3131
defer store.Close()
@@ -43,7 +43,7 @@ func TestAppendAndReadMultipleEntry(t *testing.T) {
4343
}
4444

4545
func TestReadFromANewStoreAfterClose(t *testing.T) {
46-
filePath := fmt.Sprintf("%s%s", os.TempDir(), "TestReadFromANewStoreAfterClose")
46+
filePath := fmt.Sprintf("%s/%s", os.TempDir(), "TestReadFromANewStoreAfterClose")
4747
defer os.Remove(filePath)
4848
store, err := NewStore(filePath)
4949
defer store.Close()

0 commit comments

Comments
 (0)