feat(conformance): skip incorrect tests (#3310)
Fixes https://github.com/filecoin-project/test-vectors/issues/72
This commit is contained in:
parent
a03931daab
commit
a89faa72ea
@ -53,11 +53,10 @@ func (d *Driver) ExecuteMessage(msg *types.Message, preroot cid.Cid, bs blocksto
|
|||||||
invoker := vm.NewInvoker()
|
invoker := vm.NewInvoker()
|
||||||
|
|
||||||
// add support for the puppet and chaos actors.
|
// add support for the puppet and chaos actors.
|
||||||
selector := d.vector.Selector.Unpack()
|
if puppetOn, ok := d.vector.Selector["puppet_actor"]; ok && puppetOn == "true" {
|
||||||
if puppetOn, ok := selector["puppet_actor"]; ok && puppetOn == "true" {
|
|
||||||
invoker.Register(puppet.PuppetActorCodeID, puppet.Actor{}, puppet.State{})
|
invoker.Register(puppet.PuppetActorCodeID, puppet.Actor{}, puppet.State{})
|
||||||
}
|
}
|
||||||
if chaosOn, ok := selector["chaos_actor"]; ok && chaosOn == "true" {
|
if chaosOn, ok := d.vector.Selector["chaos_actor"]; ok && chaosOn == "true" {
|
||||||
invoker.Register(chaos.ChaosActorCodeCID, chaos.Actor{}, chaos.State{})
|
invoker.Register(chaos.ChaosActorCodeCID, chaos.Actor{}, chaos.State{})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,6 +119,13 @@ func TestConformance(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
t.Run(v, func(t *testing.T) {
|
t.Run(v, func(t *testing.T) {
|
||||||
|
for _, h := range vector.Hints {
|
||||||
|
if h == schema.HintIncorrect {
|
||||||
|
t.Logf("skipping vector marked as incorrect: %s", vector.Meta.ID)
|
||||||
|
t.SkipNow()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// dispatch the execution depending on the vector class.
|
// dispatch the execution depending on the vector class.
|
||||||
switch vector.Class {
|
switch vector.Class {
|
||||||
case "message":
|
case "message":
|
||||||
|
2
extern/test-vectors
vendored
2
extern/test-vectors
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 30e047041d46f2131881690b589ce57b093678a7
|
Subproject commit f1f9148102732cd8eb8949c17688d2b173975ff6
|
Loading…
Reference in New Issue
Block a user