Fedora 25 - go test: FAIL: TestShouldRunWithinTransaction
marcindulak opened this issue · comments
marcindulak commented
cat /etc/redhat-release
#Fedora release 25 (Twenty Five)
dnf -y install "compiler(go-compiler)"
go version
#go version go1.7.5 linux/amd64
dnf -y install "golang(github.com/go-sql-driver/mysql)"
rm -rf /tmp/go
mkdir -p /tmp/go/src
export GOPATH=/tmp/go:/usr/share/gocode
cd /tmp/go/src
mkdir -p github.com/DATA-DOG
cd github.com/DATA-DOG
git clone https://github.com/DATA-DOG/go-txdb
cd go-txdb
git rev-parse HEAD
#ca6ebaaaa8271297fab0f1170eadf5c2c80e7629
go test
#--- FAIL: TestShouldRunWithinTransaction (0.00s)
#db_test.go:28: failed to insert an user: dial tcp 127.0.0.1:3306: getsockopt: connection refused
#--- FAIL: TestShouldHandlePrepare (0.00s)
#panic: runtime error: invalid memory address or nil pointer dereference [recovered]
#panic: runtime error: invalid memory address or nil pointer dereference
#[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x4ddc67]
Gediminas Morkevicius commented
Hi, what was the reason to open an issue? clearly a connection failed to open.
marcindulak commented
I see "In order to run tests, you need a mysql database with a root access without password locally." in https://github.com/DATA-DOG/go-txdb/blob/master/README.md - should have read this before.