Having issue when Test Cases Running on Code which is using read-replica. #11802
Unanswered
masterdungeon
asked this question in
Q&A
Replies: 1 comment 1 reply
-
i presume you are using django? im not familiar with the api you use there and absolutely zero details are rpovided about your deployment, dependencies and setup, so we cannot give any advice in good conscience i recommend updating the question with details on the used libraries, test integrations and setup so we have the glimpse of a chance to help |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an API, for which I am writing test cases. that API used read-replica to fetch the data.
MyModel.objects.using('replica').all().count()
this is the code which is written in API.Now when test cases running it returns 0. but when I am modifying this to
MyModel.objects..all().count()
then it returns 1.We are creating a new blank database for running test cases every time.
Beta Was this translation helpful? Give feedback.
All reactions