()
| 28 | } |
| 29 | |
| 30 | func (asuite *AclTestSuite) SetupTest() { |
| 31 | conf := dgraphtest.NewClusterConfig().WithNumAlphas(1).WithNumZeros(1). |
| 32 | WithReplicas(1).WithACL(20 * time.Second).WithEncryption().WithVersion(asuite.uc.Before) |
| 33 | c, err := dgraphtest.NewLocalCluster(conf) |
| 34 | x.Panic(err) |
| 35 | if err := c.Start(); err != nil { |
| 36 | c.Cleanup(true) |
| 37 | asuite.T().Fatal(err) |
| 38 | } |
| 39 | asuite.lc = c |
| 40 | asuite.dc = c |
| 41 | } |
| 42 | |
| 43 | func (asuite *AclTestSuite) TearDownTest() { |
| 44 | asuite.lc.Cleanup(asuite.T().Failed()) |
nothing calls this directly
no test coverage detected