Giter Site home page Giter Site logo

关于测试 about nju-dissys-2017 HOT 3 CLOSED

zhang-xiaoda avatar zhang-xiaoda commented on August 13, 2024
关于测试

from nju-dissys-2017.

Comments (3)

Zhang-Xiaoda avatar Zhang-Xiaoda commented on August 13, 2024

Hi,

"go test"是将测试用例全部过一遍,而我们实验的要求是能够通过基本的那几个测试(见作业说明)就可以了。

谢谢
张晓达

from nju-dissys-2017.

jiexray avatar jiexray commented on August 13, 2024

谢谢。
我遇到的问题是:在执行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.

Zhang-Xiaoda avatar Zhang-Xiaoda commented on August 13, 2024

Hi,

最终作业评分是按照那几个基本操作来的,不过我还是鼓励你去搞明白出错的原因。你需要看明白test_test.go和config.go中的相关函数是如何操作的。

张晓达

from nju-dissys-2017.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.