aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import_test.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-05-14 01:46:07 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-05-23 14:21:44 +0200
commit2a9705612478bfae4515616d9649ddfb140b54cf (patch)
tree4b46b7f4a0872ab9e41768e43abbc6c80ee7d50d /bridge/github/import_test.go
parent12f6fd61be835ca37e6a4e8a17abd4b8175e6ba0 (diff)
downloadgit-bug-2a9705612478bfae4515616d9649ddfb140b54cf.tar.gz
introduce `nextValidIssueEdit` and `nextValidCommentEdit` to escape empty `Diff`objects
calling nextValidEdit functions directly after a new query (Fixing a bug where capacity=2)
Diffstat (limited to 'bridge/github/import_test.go')
-rw-r--r--bridge/github/import_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/github/import_test.go b/bridge/github/import_test.go
index 48283b7a..7f83130c 100644
--- a/bridge/github/import_test.go
+++ b/bridge/github/import_test.go
@@ -152,7 +152,7 @@ func Test_Importer(t *testing.T) {
fmt.Printf("test repository imported in %f seconds\n", time.Since(start).Seconds())
- require.Len(t, backend.AllBugsIds(), 9)
+ require.Len(t, backend.AllBugsIds(), len(tests))
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {