Added randomization of axon port in test
@@ -54,6 +54,8 @@ class MnistNode(unittest.TestCase):
self.keypair = Keypair.create_from_mnemonic(mnemonic)
self.session = bittensor.init(self.config, self.keypair)
+ self.config.session_settings.axon_port = random.randint(8000, 9000)
+
# Build and server the synapse.
model_config = FFNNConfig()
self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
