Closed vqhuy closed 6 years ago
@c633 I went ahead and moved around the new test cases I added in #182 to make the tests pass again. There are, however, two tests in consistency_checks.go that no longer pass (TestVerifyRegistrationWithTB
and TestVerifyFulfilledPromise
). I don't know if you encountered this issue before.
Our error codes are a mess for now. Another PR will follow up.
All tests are fixed. PTAL.
Are we going to go back to using import . for the test cases that used to have cyclical dependencies?
I think yes.
In the spirit of refactoring: Is there an application layer API that we can refactor from the CLIs? I haven't spent much time looking into this, but it could be useful to have an application layer API for each component in the same way that we have a protocol level API for each. This could then help developers integrate things like a client with their existing applications. What do you think?
Is there an application layer API that we can refactor from the CLIs?
Yes, it is. Actually, every module that doesn't belong to cli
package should be used to provide APIs for developers. We do have plan for this, please see #101, I think it belongs to milestone 0.3 and 0.5.
Merge #170 & #182 first.