anchor.diff:    } testConfig.metricProvider or {}];
   
     testScript = ''
  -    ${"$"+exporter}->start();
  -    ${concatStringsSep "  " (map (line: ''
  -      ${"$"+exporter}->${line};
  -    '') (splitString "\n" (removeSuffix "\n" testConfig.exporterTest)))}
  -    ${"$"+exporter}->shutdown();
  +    ${exporter}.start()
  +    ${concatStringsSep "\n" (map (line:
  +      if (builtins.substring 0 1 line == " " || builtins.substring 0 1 line == ")")
  +      then line
  +      else "${exporter}.${line}"
  +    ) (splitString "\n" (removeSuffix "\n" testConfig.exporterTest)))}
  +    ${exporter}.shutdown()
     '';
   
     meta = with maintainers; {
  
positive.code:         services.rspamd.enable = true;
        };
        exporterTest = ''
          waitForUnit("rspamd.service");
          waitForUnit("prometheus-rspamd-exporter.service");
          waitForOpenPort(11334);
          waitForOpenPort(7980);
          waitUntilSucceeds("curl -sSf localhost:7980/metrics | grep -q 'rspamd_scanned{host=\"rspamd\"} 0'");
        '';
      };
  
  
negative.code:         services.dnsmasq.enable = true;
        };
        exporterTest = ''
          wait_for_unit("prometheus-dnsmasq-exporter.service")
          wait_for_open_port(9153)
          succeed("curl -sSf http://localhost:9153/metrics | grep -q 'dnsmasq_leases 0'")
        '';
      };
  
  