Homework 2 forum

Strange behavior for TestGossiper_Download_Metafile_Seq

 
Nutzerbild von Bastien Wermeille
Strange behavior for TestGossiper_Download_Metafile_Seq
von Bastien Wermeille - Dienstag, 3. November 2020, 22:42
 

Hello,

Regarding the test TestGossiper_Download_Metafile_Seq, there is the following lines:

    nA.gossiper.AddRoute(nC.id, nC.addr) // A --> C
    nC.gossiper.AddRoute(nA.id, nA.addr) // C --> A
    nC.gossiper.AddRoute(nD.id, nD.addr) // C --> D
    nD.gossiper.AddRoute(nC.id, nC.addr) // D --> C
    nD.gossiper.AddRoute(nB.id, nB.addr) // D --> B
    nB.gossiper.AddRoute(nD.id, nD.addr) // B --> D

But I think that there is a problem on the lines 3 and 4 which should be:

    nC.gossiper.AddRoute(nD.id, nC.addr) // C --> D
    nD.gossiper.AddRoute(nC.id, nD.addr) // D --> C
Best regards,

Bastien Wermeille

Nutzerbild von Bastien Wermeille
Re: Strange behavior for TestGossiper_Download_Metafile_Seq
von Bastien Wermeille - Dienstag, 3. November 2020, 22:57
 

My bad, I missread it.

Everything's alright.