I am using Apple M1 (GOARCH="arm64"; GOOS="darwin"; GOVERSION="go1.18.3") to test the proj6 but failed to pass the only case TestLockTTL.
The testLockSuite function ttlEquals should be set true when the arch is arm64, otherwise, the code will not be able to pass the test locally, although it works well on the Autograding machine.
In order to avoid unnecessary misunderstandings among students using the MacBook with Apple silicon, I suggest adding a condition runtime.GOARCH == "arm64" to the judgment.
What problem does this PR solve?
What is changed and how it works?
I have written a demo as follows.
It will get different results depending on whether the system is arm64 or amd64.
In order to avoid unnecessary misunderstandings among students using the MacBook with Apple silicon, I suggest adding a condition
runtime.GOARCH == "arm64"
to the judgment.