Skip to content

Commit

Permalink
add identify call to onUpdate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Warr committed Jul 10, 2023
1 parent d5cbac5 commit 6f12e8a
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,14 @@ class DVCClientTests {
countDownLatch.countDown()
}
})
client.onInitialized(object: DVCCallback<String> {
override fun onSuccess(result: String) {
client.identifyUser(DVCUser.builder().withUserId("asdasdas").build())
}
override fun onError(t: Throwable) {
error = t
}
})
} catch(t: Throwable) {
countDownLatch.countDown()
} finally {
Expand All @@ -430,6 +438,15 @@ class DVCClientTests {
calledBack = true
countDownLatch.countDown()
}

client.onInitialized(object: DVCCallback<String> {
override fun onSuccess(result: String) {
client.identifyUser(DVCUser.builder().withUserId("asdasdas").build())
}
override fun onError(t: Throwable) {
error = t
}
})
} catch(t: Throwable) {
countDownLatch.countDown()
} finally {
Expand Down

0 comments on commit 6f12e8a

Please sign in to comment.