Skip to content

Commit

Permalink
Fix ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnu-liguobin committed Jan 15, 2024
1 parent e970c0d commit 6ad600f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/zio/nebula/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import zio.nebula.storage._
package object nebula {

type SessionClient = NebulaSessionClient
type Client = NebulaClient with NebulaSessionPoolConfig with NebulaPoolConfig
type Client = NebulaClient with NebulaPoolConfig
type Storage = NebulaStorageClient
type Meta = NebulaMetaClient

Expand Down
12 changes: 6 additions & 6 deletions core/src/test/scala/zio/nebula/NebulaSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ trait NebulaSpec extends ZIOSpecDefault {
(specLayered @@ beforeAll(
ZIO.serviceWithZIO[NebulaClient](_.init())
*> ZIO.serviceWithZIO[NebulaClient](
_.openSession().flatMap(_.execute(Stmt.str("""
|CREATE SPACE IF NOT EXISTS test(vid_type=fixed_string(20));
|USE test;
|CREATE TAG IF NOT EXISTS person(name string, age int);
|CREATE EDGE IF NOT EXISTS like(likeness double)
|""".stripMargin)))
_.openSession(false).flatMap(_.execute(Stmt.str("""
|CREATE SPACE IF NOT EXISTS test(vid_type=fixed_string(20));
|USE test;
|CREATE TAG IF NOT EXISTS person(name string, age int);
|CREATE EDGE IF NOT EXISTS like(likeness double)
|""".stripMargin)))
)
) @@ sequential @@ eventually)
.provideShared(
Expand Down
13 changes: 4 additions & 9 deletions core/src/test/scala/zio/nebula/ZioNebulaEnvironment.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,10 @@ object ZioNebulaEnvironment {
maxConnsSize = 10,
intervalIdleMills = 100,
waitTimeMills = 100,
sslParam = None
)
) ++ ZLayer.fromZIO(
ZIO.attempt(
NebulaSessionPoolConfig(
List(NebulaHostAddress(host, port)),
NebulaAuth(defaultUser, defaultPwd),
defaultSpace
)
sslParam = None,
address = List(NebulaHostAddress(host, port)),
auth = NebulaAuth(defaultUser, defaultPwd),
spaceName = Some(defaultSpace)
)
)

Expand Down

0 comments on commit 6ad600f

Please sign in to comment.