Comments (3)
Hi,
"go test"是将测试用例全部过一遍,而我们实验的要求是能够通过基本的那几个测试(见作业说明)就可以了。
谢谢
张晓达
from nju-dissys-2017.
谢谢。
我遇到的问题是:在执行go test
的时候的时候,出现问题(TestRejoin
过不去)。但是,单独执行TestRejoin
,多次执行都没有问题,程序显示...PASS
。如下
运行go test
xxxxxx-air:raft jiexray$ go test
Test: initial election ...
... Passed
Test: election after network failure ...
... Passed
Test: basic agreement ...
... Passed
Test: agreement despite follower failure ...
... Passed
Test: no agreement if too many followers fail ...
... Passed
Test: concurrent Start()s ...
... Passed
Test: rejoin of partitioned leader ...
2017/11/11 15:57:59 apply error: commit index=2 server=2 104 != server=1 103
exit status 1
FAIL raft 22.817s
多次运行go test -run Rejoin
xxxxxx-air:raft jiexray$ go test -run Rejoin
Test: rejoin of partitioned leader ...
... Passed
PASS
ok raft 4.063s
xxxxxx-air:raft jiexray$ go test -run Rejoin
Test: rejoin of partitioned leader ...
... Passed
PASS
ok raft 5.950s
xxxxxx-air:raft jiexray$ go test -run Rejoin
Test: rejoin of partitioned leader ...
... Passed
PASS
ok raft 6.038s
xxxxxx-air:raft jiexray$ go test -run Rejoin
Test: rejoin of partitioned leader ...
... Passed
PASS
ok raft 6.016s
导致go test
错误的原因不是很清楚,而且作业说明中没有提供go test
的运行截图。最终作业判分的时候,是否需要进行go test
测试?
from nju-dissys-2017.
Hi,
最终作业评分是按照那几个基本操作来的,不过我还是鼓励你去搞明白出错的原因。你需要看明白test_test.go和config.go中的相关函数是如何操作的。
张晓达
from nju-dissys-2017.
Related Issues (4)
- AppendEntries RPC接口 HOT 2
- 可以检查一下TestFailNoAgree这个测试用例吗 HOT 2
- decode错误:eof HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nju-dissys-2017.