From 1f0a65f0a2fb2e35343625a7242dbbd456e35a02 Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 10 Mar 2016 22:21:21 +0800 Subject: [PATCH] fix the orm test --- .travis.yml | 2 +- orm/orm_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d8922fd2..3c821dcd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,7 +45,7 @@ after_script: - rm -rf ./res/var/* script: - go vet -x ./... - - $HOME/gopath/bin/golint ./... | grep -v "should be" + - $HOME/gopath/bin/golint ./... - go test -v ./... notifications: webhooks: https://hooks.pubu.im/services/z7m9bvybl3rgtg9 diff --git a/orm/orm_test.go b/orm/orm_test.go index f638fba4..ec0f0d3a 100644 --- a/orm/orm_test.go +++ b/orm/orm_test.go @@ -1943,7 +1943,7 @@ func TestInLine(t *testing.T) { throwFail(t, AssertIs(id, 1)) il := NewInLine() - il.Id = 1 + il.ID = 1 err = dORM.Read(il) throwFail(t, err)