()
| 28 | } |
| 29 | |
| 30 | func (psuite *PluginTestSuite) SetupSubTest() { |
| 31 | // The TestPlugins() invokes subtest function, hence using |
| 32 | // SetupSubTest() instead of SetupTest(). |
| 33 | conf := dgraphtest.NewClusterConfig().WithNumAlphas(1).WithNumZeros(1).WithReplicas(1). |
| 34 | WithVersion(psuite.uc.Before).WithCustomPlugins() |
| 35 | c, err := dgraphtest.NewLocalCluster(conf) |
| 36 | x.Panic(err) |
| 37 | if err := c.Start(); err != nil { |
| 38 | c.Cleanup(true) |
| 39 | panic(err) |
| 40 | } |
| 41 | |
| 42 | psuite.dc = c |
| 43 | psuite.lc = c |
| 44 | } |
| 45 | |
| 46 | func (psuite *PluginTestSuite) TearDownTest() { |
| 47 | psuite.lc.Cleanup(psuite.T().Failed()) |
nothing calls this directly
no test coverage detected