From 44b6e345d174e25e1be4522a840c8645d1726754 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 6 Jul 2023 21:43:02 -0400 Subject: [PATCH] tests: Remove rofi check --- tests/check_latest_commit.cr | 16 ---------------- tests/main.cr | 6 ------ 2 files changed, 22 deletions(-) delete mode 100644 tests/check_latest_commit.cr diff --git a/tests/check_latest_commit.cr b/tests/check_latest_commit.cr deleted file mode 100644 index fb21d76c..00000000 --- a/tests/check_latest_commit.cr +++ /dev/null @@ -1,16 +0,0 @@ -require "spec" -require "json" -require "http/client" - -def check_latest_commit(repository, branch = "master") - response = HTTP::Client.get "https://api.github.com/repos/#{repository}/branches/#{branch}" - response.status_code.should eq(200) - json = JSON.parse(response.body) - - File.read_lines("./overlays/#{repository.split("/")[1]}/default.nix").each do |line| - if line.includes? "version =" - nix_hash = line.split('"')[1] - json["commit"]["sha"].should eq(nix_hash) - end - end -end diff --git a/tests/main.cr b/tests/main.cr index bdf16ae5..ce2adee6 100644 --- a/tests/main.cr +++ b/tests/main.cr @@ -7,9 +7,3 @@ check_top_level_imports("home") check_top_level_imports("modules") check_top_level_imports("overlays") check_top_level_imports("specializations") - -describe "./overlays/rofi/default.nix", tags: "online" do - it "uses the latest rofi-wayland commit" do - check_latest_commit("lbonn/rofi", branch: "wayland") - end -end