We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5852176 commit 26a0c21Copy full SHA for 26a0c21
integration_test.go
@@ -2,6 +2,7 @@ package gitquery_test
2
3
import (
4
"context"
5
+ "path/filepath"
6
"testing"
7
8
"github.com/src-d/gitquery"
@@ -20,6 +21,8 @@ func TestIntegration(t *testing.T) {
20
21
}()
22
23
path := fixtures.ByTag("worktree").One().Worktree().Root()
24
+ dirName := filepath.Base(path)
25
+
26
pool := gitquery.NewRepositoryPool()
27
_, err := pool.AddGit(path)
28
require.NoError(t, err)
@@ -105,9 +108,9 @@ func TestIntegration(t *testing.T) {
105
108
) as t
106
109
GROUP BY committer_email, month, repo_id`,
107
110
[]sql.Row{
- {int32(6), int32(3), path, "[email protected]"},
- {int32(1), int32(4), path, "[email protected]"},
- {int32(1), int32(3), path, "[email protected]"},
111
+ {int32(6), int32(3), dirName, "[email protected]"},
112
+ {int32(1), int32(4), dirName, "[email protected]"},
113
+ {int32(1), int32(3), dirName, "[email protected]"},
114
},
115
116
{
0 commit comments