testDB, err := sql.Open(dbDriver, dbSource) with testDB, err = sql.Open(dbDriver, dbSource).
Because testDB and err were declare, so you shouldn't use :=, just use =
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm getting
=== RUN TestTransferTx
panic: test timed out after 30s
How do I go about it?
You should replace this code in main_test.go:
testDB, err := sql.Open(dbDriver, dbSource) with testDB, err = sql.Open(dbDriver, dbSource).
Because testDB and err were declare, so you shouldn't use :=, just use =