Skip to content

Commit

Permalink
use t.TempDir for index path
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed Jul 12, 2023
1 parent 9272f55 commit e25266a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions internal/core/algorithm/ngt/ngt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-81",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Uint8,
Expand Down Expand Up @@ -1425,7 +1425,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-82",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Uint8,
Expand Down Expand Up @@ -1453,7 +1453,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-83",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Uint8,
Expand Down Expand Up @@ -1487,7 +1487,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-84",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Uint8,
Expand Down Expand Up @@ -1528,7 +1528,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-85",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Uint8,
Expand Down Expand Up @@ -1574,7 +1574,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-86",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Float,
Expand Down Expand Up @@ -1602,7 +1602,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-87",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Float,
Expand Down Expand Up @@ -1630,7 +1630,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-88",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Float,
Expand Down Expand Up @@ -1663,7 +1663,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-89",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Float,
Expand Down Expand Up @@ -1704,7 +1704,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-810",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Float,
Expand Down Expand Up @@ -1750,7 +1750,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-811",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Uint8,
Expand Down Expand Up @@ -1778,7 +1778,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-812",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Uint8,
Expand All @@ -1804,7 +1804,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-813",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Float,
Expand All @@ -1829,7 +1829,7 @@ func Test_ngt_Search(t *testing.T) {
},
fields: fields{
inMemory: false,
idxPath: "/tmp/ngt-814",
idxPath: t.TempDir(),
bulkInsertChunkSize: 100,
dimension: 9,
objectType: Float,
Expand Down

0 comments on commit e25266a

Please sign in to comment.