Conversation
Signed-off-by: Harshita Shankar <harshitashankar@yahoo.com>
Signed-off-by: Harshita Shankar <harshitashankar@yahoo.com>
Signed-off-by: Harshita Shankar <harshitashankar@yahoo.com>
|
Keploy failed to create test cases for this PR. For retrying, please click here |
Signed-off-by: Harshita Shankar <harshitashankar@yahoo.com>
49bbf32 to
e5ff27c
Compare
|
@harshitashankar, can you please send me the sample app with which you tested this change. |
Verified using this UT- https://github.com/keploy/jsondiff/blob/main/jsonDiff_test.go#L677-L691 Let me know if you think something else also needs to be tested. |
|
It looks good to me! |
Tests were failing intermittently because Go's map iteration order is random by design, which meant that the order of nested objects could vary between runs. By sorting the keys before iteration, we can ensure consistent order that matches the test's expectations.
Fixes #17, #16