diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-11-02 15:00:48 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-11-05 10:04:56 +0100 |
| commit | 7d09cc77d473c658dc99752f94db4461864ce869 (patch) | |
| tree | de4407a4652b7610f37a32b8aeecae6d941bdb02 /mullvad-tests/src | |
| parent | 009dfe9c8a2c50f7fc46794cf17d8809cf285a99 (diff) | |
| download | mullvadvpn-7d09cc77d473c658dc99752f94db4461864ce869.tar.xz mullvadvpn-7d09cc77d473c658dc99752f94db4461864ce869.zip | |
Use latest changes to openvpn-plugin library
Diffstat (limited to 'mullvad-tests/src')
| -rw-r--r-- | mullvad-tests/src/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mullvad-tests/src/lib.rs b/mullvad-tests/src/lib.rs index d8dd46a243..a8e291a5fd 100644 --- a/mullvad-tests/src/lib.rs +++ b/mullvad-tests/src/lib.rs @@ -28,7 +28,6 @@ use jsonrpc_client_ipc::IpcTransport; use mullvad_ipc_client::{DaemonRpcClient, ResultExt}; use mullvad_paths::resources::API_CA_FILENAME; use notify::{RawEvent, RecommendedWatcher, RecursiveMode, Watcher}; -use openvpn_plugin::types::OpenVpnPluginEvent; use tempfile::TempDir; use tokio::reactor::Handle; @@ -410,16 +409,16 @@ impl MockOpenVpnPluginRpcClient { env.insert("ifconfig_local".to_owned(), "10.0.0.10".to_owned()); env.insert("route_vpn_gateway".to_owned(), "10.0.0.1".to_owned()); - self.send_event(OpenVpnPluginEvent::Up, env) + self.send_event(openvpn_plugin::EventType::Up, env) } pub fn route_predown(&mut self) -> Result<()> { - self.send_event(OpenVpnPluginEvent::RoutePredown, HashMap::new()) + self.send_event(openvpn_plugin::EventType::RoutePredown, HashMap::new()) } fn send_event( &mut self, - event: OpenVpnPluginEvent, + event: openvpn_plugin::EventType, env: HashMap<String, String>, ) -> Result<()> { self.rpc |
