Comments (2)
Thanks for the report. It has been fixed in: e40cbd1
Now it reports:
=== RUN TestAdapters
2018/12/07 23:06:55 Policy: []
2018/12/07 23:06:55 Policy: [[alice data1 read] [bob data2 write] [data2_admin data2 read] [data2_admin data2 write]]
2018/12/07 23:06:55 Policy: [[alice data1 read] [bob data2 write] [data2_admin data2 read] [data2_admin data2 write]]
--- FAIL: TestAdapters (1.18s)
panic: dial tcp 127.0.0.1:5432: connectex: No connection could be made because the target machine actively refused it. [recovered]
panic: dial tcp 127.0.0.1:5432: connectex: No connection could be made because the target machine actively refused it.
goroutine 19 [running]:
testing.tRunner.func1(0xc0000f2300)
C:/Go/src/testing/testing.go:792 +0x38e
panic(0x7f0760, 0xc000154c30)
C:/Go/src/runtime/panic.go:513 +0x1c7
github.com/casbin/xorm-adapter.(*Adapter).open(0xc0001d1890)
C:/GoPath/src/github.com/casbin/xorm-adapter/adapter.go:114 +0x231
github.com/casbin/xorm-adapter.NewAdapter(0x848b91, 0x8, 0x85dad5, 0x36, 0x0, 0x0, 0x0, 0x7c2480)
C:/GoPath/src/github.com/casbin/xorm-adapter/adapter.go:69 +0x96
github.com/casbin/xorm-adapter.initPolicy(0xc0000f2300, 0x848b91, 0x8, 0x85dad5, 0x36, 0x0, 0x0, 0x0)
C:/GoPath/src/github.com/casbin/xorm-adapter/adapter_test.go:42 +0x101
github.com/casbin/xorm-adapter.testSaveLoad(0xc0000f2300, 0x848b91, 0x8, 0x85dad5, 0x36, 0x0, 0x0, 0x0)
C:/GoPath/src/github.com/casbin/xorm-adapter/adapter_test.go:65 +0xa2
github.com/casbin/xorm-adapter.TestAdapters(0xc0000f2300)
C:/GoPath/src/github.com/casbin/xorm-adapter/adapter_test.go:130 +0xba
testing.tRunner(0xc0000f2300, 0x862b28)
C:/Go/src/testing/testing.go:827 +0xc6
created by testing.(*T).Run
C:/Go/src/testing/testing.go:878 +0x35a
Process finished with exit code 1
from xorm-adapter.
Thanks!
from xorm-adapter.
Related Issues (20)
- Is it necessary to add 'p_type' tag to compatible the old version? HOT 1
- the func SavePolicy will drop table? HOT 2
- xorm is moving to gitea.com HOT 1
- panic: interface conversion: *xormadapter.Adapter is not persist.Adapter: missing method LoadPolicy HOT 9
- fail to mssql HOT 2
- Adapter.SavePolicy() not safe for concurrent use? HOT 6
- Implement UpdatePolicy() API (aka UpdatableAdapter interface) HOT 1
- Interface conversion (Panic) *xormadapter.Adapter is not persist.UpdatableAdapter: missing method UpdatePolicies HOT 2
- SavePolicy reports "No element on slice when insert" error when the model's policy is null HOT 10
- Switch to GitHub Actions CI and add semantic-release HOT 2
- Missing method UpdateFilteredPolicies HOT 4
- Support table prefix HOT 2
- UpdateFilteredPolicies returns the oldPolicy containing ptype, Is this a bug? HOT 6
- README is wrong (for v1 only) HOT 1
- [BREAKING CHANGE] Rename PType to Ptype like gorm-adapter HOT 2
- [Question] Can I configure casbin xorm to "skip" table creation ? HOT 7
- Fails to connect to pg 16.1 HOT 5
- xorm-adapter v2 not find HOT 2
- feature: fix the context adapter feature HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xorm-adapter.