Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

tests are broken #520

Open
s-mang opened this issue Oct 16, 2017 · 9 comments
Open

tests are broken #520

s-mang opened this issue Oct 16, 2017 · 9 comments
Assignees

Comments

@s-mang
Copy link

s-mang commented Oct 16, 2017

tests are broken for the following pkgs:

  • gosrc
  • database

(on master, 2fa0678)
gddo$ go test ./...
# github.com/golang/gddo/gosrc
gosrc/gosrc_test.go:266:63: cannot use testGet (type func(*http.Client, map[string]string, string) (*Directory, error)) as type func(context.Context, *http.Client, map[string]string, string) (*Directory, error) in field value
gosrc/gosrc_test.go:267:14: cannot use testGet (type func(*http.Client, map[string]string, string) (*Directory, error)) as type func(context.Context, *http.Client, map[string]string, string) (*Directory, error) in assignment
gosrc/gosrc_test.go:271:25: not enough arguments in call to getDynamic
have (*http.Client, string, string)
want (context.Context, *http.Client, string, string)
# github.com/golang/gddo/database
database/database_test.go:49:44: unknown field 'AppEngineContext' in struct literal of type Database
database/database_test.go:72:18: not enough arguments in call to db.Put
have (*doc.Package, time.Time, bool)
want (context.Context, *doc.Package, time.Time, bool)
database/database_test.go:75:18: not enough arguments in call to db.Put
have (*doc.Package, time.Time, bool)
want (context.Context, *doc.Package, time.Time, bool)
database/database_test.go:79:55: not enough arguments in call to db.Get
have (string)
want (context.Context, string)
database/database_test.go:99:31: not enough arguments in call to db.Get
have (string)
want (context.Context, string)
database/database_test.go:112:32: not enough arguments in call to db.Get
have (string)
want (context.Context, string)
database/database_test.go:120:44: not enough arguments in call to db.Get
have (string)
want (context.Context, string)
database/database_test.go:160:21: not enough arguments in call to db.Delete
have (string)
want (context.Context, string)
database/database_test.go:166:18: not enough arguments in call to db.Put
have (*doc.Package, time.Time, bool)
want (context.Context, *doc.Package, time.Time, bool)
FAIL github.com/golang/gddo/database [build failed]
ok github.com/golang/gddo/doc 0.087s

cc @shantuo @zombiezen

@s-mang
Copy link
Author

s-mang commented Oct 16, 2017

will assign myself to this issue when i can (need permission)

@shantuo
Copy link
Contributor

shantuo commented Oct 16, 2017

@adg Coud you add @adams-sarah and @zombiezen to gddo-member?

@s-mang s-mang self-assigned this Oct 16, 2017
@adg
Copy link
Contributor

adg commented Oct 16, 2017

@shantuo done

@zombiezen
Copy link
Contributor

@shantuo was already looking at the build breakage in some capacity, you should coordinate.

@s-mang
Copy link
Author

s-mang commented Oct 16, 2017

oh i've got the fixes in a branch now, but no way to test for sure they work atm.
need an appengine-specific redis server to run the database tests, looks like. or anyway, it's crapping out with my run-of-the-mill redis server and complaining about something appengine.

figured i'd just finish later (wednesday)

@shantuo feel free to take this if you prefer, of course. test fixes were simple/fast.

@shantuo
Copy link
Contributor

shantuo commented Oct 16, 2017

You should be able to just use normal redis for any test/non-search related functions. I'll check that and fix this.

@shantuo shantuo self-assigned this Oct 16, 2017
@s-mang
Copy link
Author

s-mang commented Oct 16, 2017

oh lol. i just saw this and stopped thinking:

second db.Put() returned error database.DeleteIndex: no App Engine endpoint given

@dmitshur
Copy link
Contributor

This looks like a duplicate of #480. One of the two issues should be closed as dup.

@s-mang
Copy link
Author

s-mang commented Oct 24, 2017

Can't figure out how to properly link the change on gerrit. but here's the WIP https://go-review.googlesource.com/c/gddo/+/73031

It's all yours @shantuo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants