Skip to content

Commit

Permalink
fix: e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
alxarno committed Nov 17, 2024
1 parent a33aebe commit 926c94f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions e2e/index.fixture
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,6 @@
<path d="m5 1029.4c-1.1046 0-2 0.9-2 2v8 4 6c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-6-4-4l-6-6h-10z" fill="#ffffff"/>
<path d="m21 1035.4-6-6v4c0 1.1 0.895 2 2 2h4z" fill="#D1D1D1"/>
</g>
</svg>
<figcaption class="figure-caption">test.index.tinytune</figcaption>
</figure></li>
<li class="col"><figure class="figure dir-list-item">
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" width="80" height="100" viewBox="0 0 24 24" version="1.1">
<g transform="translate(0 -1028.4)">
<path d="m5 1030.4c-1.1046 0-2 0.9-2 2v8 4 6c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-6-4-4l-6-6h-10z" fill="#D1D1D1"/>
<path d="m5 1029.4c-1.1046 0-2 0.9-2 2v8 4 6c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-6-4-4l-6-6h-10z" fill="#ffffff"/>
<path d="m21 1035.4-6-6v4c0 1.1 0.895 2 2 2h4z" fill="#D1D1D1"/>
</g>
</svg>
<figcaption class="figure-caption">sample.txt</figcaption>
</figure></li>
Expand Down
4 changes: 0 additions & 4 deletions internal/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,13 @@ func getIndex(ctx context.Context) *index.Index {
)
PanicError(err)

files, err := NewCrawlerOS("../test").Scan("../test/index.tinytune")
PanicError(err)

indexFile, err := os.OpenFile("../test/test.index.tinytune", os.O_RDWR, 0755)
PanicError(err)
defer indexFile.Close()

index, err := index.NewIndex(
ctx,
indexFile,
index.WithFiles(files),
index.WithPreview(previewer),
index.WithWorkers(runtime.NumCPU()),
)
Expand Down

0 comments on commit 926c94f

Please sign in to comment.